package com.mrru.utils;

import com.mrru.shiro.AccountProfile;
import org.apache.shiro.SecurityUtils;

/**
 * @className: ShiroUtil
 * @author: 茹某
 * @date: 2022/4/29 19:12
 **/
public class ShiroUtil
{
    //获取当前用户信息
    public static AccountProfile getProfile(){
        return (AccountProfile) SecurityUtils.getSubject().getPrincipal();
    }
}
